﻿@using BrnMall.Web.StoreAdmin.Models
@model BrnMall.Web.StoreAdmin.Models.CardVerifyListModel

@section header{
    <title>代理商列表</title>
    <link type="text/css" rel="stylesheet" href="/admin_store/css/site.css" />
    <script type="text/javascript" src="/admin_store/scripts/jquery.js"></script>
    <script type="text/javascript" src="/admin_store/scripts/showlist.js"></script>
}
@section body{
    <h1 class="rightH1">
		小程序分销 &gt; 企业名片 &gt; <span class="rightH1-cur">名片认证</span>
        <div class="right">

            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </h1>
@using (Html.BeginForm())
{
    <div class="dataList">
        <table width="100%">
            <thead>
                <tr>
                    <th align="left">编号</th>
                    <th align="left">头像</th>
                    <th align="left" width="120">用户昵称</th>
                    <th align="left" width="120">验证类型</th>

                    <th align="left">审核人</th>
                    <th align="left">审核时间</th>
                    <th align="left">状态</th>
                    <th align="left">管理操作</th>
                </tr>
            </thead>
            <tbody>
                @foreach (CardVerifyModel cardVerify in Model.Items)
                {
                    <tr>

                        <td align="left">@cardVerify.Id</td>
                        <td align="left"><img src="@cardVerify.User.Avatar" style="border-radius: 25px;" width="50" height="50" alt="" /> </td>
                        <td align="left">@cardVerify.User.NickName</td>
                        <td align="left">
                            @if (cardVerify.VerifyType == 1)
                            {
                                @:名片
                                             }
                            else if (cardVerify.VerifyType == 2)
                            {@:在职证明
                                             }
                            else if (cardVerify.VerifyType == 3)
                            {@:工牌
                                             }
                            else if (cardVerify.VerifyType == 4)
                            {@:身份证
                                             }

                        </td>

                        <td align="left">@if (cardVerify.VerifyUser != null)
                        {@cardVerify.VerifyUser.NickName}</td>
                        <td align="left">
                            @if (cardVerify.VerifyTime.Year != 1900)
                        {
                            @cardVerify.VerifyTime.ToString("yyyy-MM-dd HH:mm:ss");
                        }
                    </td>
                    <td align="left">
                        @if (cardVerify.VerifyState == 0)
                        {
                            @:待认证
                            }
                        else if (cardVerify.VerifyState == 1)
                        {
                            @:待认证
                            }
                        else if (cardVerify.VerifyState == 2)
                        {
                            @:已认证
                            }

                    </td>
                    <td align="left">

                        @if (cardVerify.VerifyState == 0 || cardVerify.VerifyState == 1)
                        {
                            @Html.ActionLink("[审核通过]", "CardVerify", new { id = @cardVerify.Id, state = 2 }, new { @class = "editOperate checkOperate" })
                        }
                        @*else
                            {
                                @Html.ActionLink("[取消审核]", "CardVerify", new { id = @cardVerify.Id, status = 1 }, new { @class = "editOperate checkOperate" })
                            }*@
                        <a class="editOperate" href="@WorkContext.ImageCDN/upload/user/source/@cardVerify.VerifyImg" target="_blank">[查看认证资料]</a>

                    </td>
                </tr>
                }
            </tbody>
        </table>
    </div>
    <div class="dataListEdit">

        <div class="page">
            @Html.MallAdminPager(Model.Page)
        </div>
    </div>
}
}
